From 88492a50d6dbc6702ebbdbf9c888a21dbbc35f60 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 27 Mar 2010 21:24:22 +0100 Subject: [PATCH] GtkStyleContext: Add gtk_render_frame_gap(). --- gtk/gtkstylecontext.c | 26 ++++++++++++++++++++++++++ gtk/gtkstylecontext.h | 9 +++++++++ 2 files changed, 35 insertions(+) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index cdf6c4b73b..5969f8dad3 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -798,5 +798,31 @@ gtk_render_slider (GtkStyleContext *context, engine_class->render_slider (priv->theming_engine, cr, x, y, width, height, orientation); } +void +gtk_render_frame_gap (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height, + GtkPositionType gap_side, + gdouble xy0_gap, + gdouble xy1_gap) +{ + GtkStyleContextPrivate *priv; + GtkThemingEngineClass *engine_class; + + g_return_if_fail (GTK_IS_STYLE_CONTEXT (context)); + g_return_if_fail (cr != NULL); + + priv = GTK_STYLE_CONTEXT_GET_PRIVATE (context); + engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine); + + _gtk_theming_engine_set_context (priv->theming_engine, context); + engine_class->render_frame_gap (priv->theming_engine, cr, + x, y, width, height, gap_side, + xy0_gap, xy1_gap); +} + #define __GTK_STYLE_CONTEXT_C__ #include "gtkaliasdef.c" diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index 710f689c4d..bea4dc72f6 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -163,6 +163,15 @@ void gtk_render_slider (GtkStyleContext *context, gdouble width, gdouble height, GtkOrientation orientation); +void gtk_render_frame_gap (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height, + GtkPositionType gap_side, + gdouble xy0_gap, + gdouble xy1_gap); G_END_DECLS -- 2.30.2